<?php



class ProductsOptionsValuesToProductsOptionsMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ProductsOptionsValuesToProductsOptionsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('products_options_values_to_products_options');
		$tMap->setPhpName('ProductsOptionsValuesToProductsOptions');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_ID', 'ProductsOptionsValuesToProductsOptionsId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignPrimaryKey('PRODUCTS_OPTIONS_ID', 'ProductsOptionsId', 'int' , CreoleTypes::INTEGER, 'products_options', 'PRODUCTS_OPTIONS_ID', true, null);

		$tMap->addForeignPrimaryKey('PRODUCTS_OPTIONS_VALUES_ID', 'ProductsOptionsValuesId', 'int' , CreoleTypes::INTEGER, 'products_options_values', 'PRODUCTS_OPTIONS_VALUES_ID', true, null);

	} 
} 